From f629824b94dce9500754bcf0c84713c3e6411846 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 24 Apr 2007 12:12:48 +0100 Subject: [PATCH] qemu: Do not kill ioemu if undefined LSI-SCI registers are read. Just return zeroes. This path is triggered by ASPI8DOS.SYS in DRDOS. Signed-off-by: Keir Fraser --- tools/ioemu/hw/lsi53c895a.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/ioemu/hw/lsi53c895a.c b/tools/ioemu/hw/lsi53c895a.c index 24dff0eff5..908e856e70 100644 --- a/tools/ioemu/hw/lsi53c895a.c +++ b/tools/ioemu/hw/lsi53c895a.c @@ -1071,8 +1071,13 @@ static uint8_t lsi_reg_readb(LSIState *s, int offset) shift = (offset & 3) * 8; return (s->scratch[n] >> shift) & 0xff; } +#ifndef CONFIG_DM BADF("readb 0x%x\n", offset); exit(1); +#else + /* XEN: This path can be triggered (e.g. ASPI8DOS.SYS reads 0x8). */ + return 0; +#endif #undef CASE_GET_REG32 } -- 2.30.2